package service;

import dao.ProductDao;
import domain.Product;

import java.sql.SQLException;
import java.util.List;

public class ProductService {
    private ProductDao dao=new ProductDao();
    public List<Product> getAllproducts() throws SQLException{
       return dao.listAll();
    }

    public List<Object[]> getHotWeekProducts() throws SQLException {
        return dao.getWeekHotProduct();

    }
}
